//
//  KTMessageTextView.h
//  KTChat
//
//  Created by Kevin on 2016/11/11.
//  Copyright © 2016年 Kevin. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KTMessageTextView;

@protocol KTMessageTextViewBlankDelegate <NSObject>

@optional
- (void)messageTextView:(KTMessageTextView *)view didBecomeBlank:(BOOL)blank;

@end

// 自动增长的textView
@interface KTMessageTextView : UITextView

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *maxHeightConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *minHeightConstraint;

@property (nonatomic, assign, readonly) BOOL isBlank;
@property (nonatomic, weak) id<KTMessageTextViewBlankDelegate> blankDelegate;

@end
